package test;

class Student{
	private static int nextId=1;
	private int id;
	private String name;
	
	public Student(String name) {
		this.name = name;
		this.id=nextId;
		nextId++;
		System.out.println(name);
		System.out.println(id);
	}
}

public class test1 {
	public static void main(String[] args){
		Student s1=new Student("yao");
		Student s2=new Student("zeng");
	}

}
